(function () {
    "use strict";

    Array.prototype.remove = function (valueToRemove) {
        var array = this,
            result = [];

        for (var i = 0; i < array.length; i++)
        {
            if (array[i] !== valueToRemove)
            {
                result.push(array[i]);
            }
        }

        return result;
    }

    var arr = [1,2,1,4,1,3,4,1,111,3,2,1,'1'];

    console.log(arr.remove(1));
}());